import sys
from PyQt5.QtWidgets import QApplication, QMainWindow, QTabWidget

from UI_singlemotor import SingleMotorControl
from UI_pump import PumpControl

class MainApp(QMainWindow):
    def __init__(self):
        super().__init__()

        self.setWindowTitle("MCU Control App")
        # self.setGeometry(100, 100, 1200, 600)
        
        self.tab_widget = QTabWidget()
        self.setCentralWidget(self.tab_widget)
        
        self.tab_widget.addTab(SingleMotorControl(), "单电机控制")
        self.tab_widget.addTab(PumpControl(), "泵控制")

if __name__ == "__main__":
    app = QApplication(sys.argv)
    window = MainApp()
    window.show()
    sys.exit(app.exec_())